﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Watcher.Data
{
    [Serializable()]
    [System.Xml.Serialization.XmlRoot("servers")]
    public class Server
    {
        [System.Xml.Serialization.XmlElement("name")]
        public string Name { get; set; }

        [System.Xml.Serialization.XmlElement("ip")]
        public string Ip { get; set; }

        [System.Xml.Serialization.XmlElement("port")]
        public string Port { get; set; }

        [System.Xml.Serialization.XmlElement("default")]
        public string Default { get; set; }
    }


    [Serializable()]
    [System.Xml.Serialization.XmlRoot("servercollection")]
    public class ServerCollection
    {
        [XmlArray("servers")]
        [XmlArrayItem("server", typeof(Server))]
        public Server[] _server { get; set; }
       
    }

}
